package map;

public interface InterfaceB extends InterfaceB2,InterfaceB22 {

    public static void sayB() {
        System.out.println("InterfaceB sayB");
    }

    @SuppressWarnings("static-access")
    public static void main(String[] args) {
        InterfaceB.sayB();
        new InterfaceB2() {
        }.sayB2();
        new InterfaceB() {
        }.sayB2();
        new B().sayB2();
        new B().sayA();
    }

    @Override
    default void sayB2() {
        System.out.println("InterfaceB sayB2");
    }

}
class B extends A implements InterfaceB {

    @Override
    public void sayB2() {
        System.out.println("B");
//        InterfaceB.super.sayB2();
    }

}

class A {
    public static void sayA() {
        System.out.println("sayA");
    }
}